package edu.nazarevych.portal.dao;

import java.util.List;

import javax.persistence.criteria.CriteriaBuilder;

import org.hibernate.classic.Session;
import org.hibernate.transform.Transformers;

import edu.nazarevych.portal.entities.Roles;
import edu.nazarevych.portal.entities.Stations;
import edu.nazarevych.portal.entities.User;

public class RolesDao extends BaseDao<Roles>{

	public RolesDao() {
		super(Roles.class);
		session = HibernateSessionFactory.sessionFactory.openSession();
	}

//	@SuppressWarnings("unchecked")
//	public List<Stations> findAll() {
//		return (List<Stations>) session
//				.createSQLQuery("SELECT  * FROM  diploma.tbl_station")
//				.setResultTransformer(Transformers.aliasToBean(Stations.class))
//				.list();
//	}

}
